copy
Copy one or more files.
copy [/A|/B] [d:][path]file [[/A|/B] +[d:][path]file] [...] [dest] [/V] [/Y]
Options
d:path\file
The name of a file to copy. This is the source.
dest
The name of destination file(s) or directory. If the
dest filename contains a *, then this is replaced by that part of
the filename with the same part as the source.
/A
Copies an ASCII file. If this precedes a filename in a list of files,
then from this file on, copy as ASCII files.
/B
Copies a binary file. This is the default. If this precedes a
filename in a list of files, then from this file on, copy as binary
files.
/V
Verifies that the files are written correctly.
/Y
Suppresses the overwrite confirmation message; existing files with the
same name at the destination will be overwritten.
Notes
Copy won't copy directories or files that are of zero length. To copy either of these,
use xcopy
The COPYCMD environment variable can be set to make /Y the default:
set COPYCMD=/Y
To cancel the /Y for a particular copy command, use /-Y at the command line.
The COPYCMD variable also affects the xcopy command.
See Also
Xcopy
Diskcopy
Copyright © 1998 Jim Hall
This file is derived from the FreeDOS Spec Command HOWTO.
See the file H2Cpying.txt for copying conditions.